package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;

import org.apache.commons.lang3.StringUtils;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 18:59
 */
public class NotBlankRuleOperator extends AbstractSingleStringRuleOperator {

    private static final String[] COMMANDS = {"is not blank"};

    @Override
    protected boolean innerTest(String obj) {
        return StringUtils.isNotBlank(obj);
    }

    @Override
    public String[] getCommands() {
        return COMMANDS;
    }
}
